// Parser.h	-	Parser class
// Parses two text files and creates a data structure of Nodes.

#ifndef PARSER_H
#define PARSER_H
#include <unordered_map>
#include <QList>
#include <QHash>
#include "Node.h"
typedef QHash<QString, Node*> NodeMap;

class Parser
{
public:
    static QList<QString> parseNodeNames(QString);
    static NodeMap* parseData(QString, QString);

private:
    static void parseLocations(QString, NodeMap*);
    static void parseConnections(QString, NodeMap*);
};
#endif
